negotiator.tournament.VariablesAndValues
Class TournamentVariable

java.lang.Object
  extended by negotiator.tournament.VariablesAndValues.TournamentVariable
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AgentParameterVariable, AgentVariable, BOAagentVariable, DBLocationVariable, DBPasswordVariable, DBSessionVariable, DBUserVariable, ExperimentalVariable, ProfileVariable, ProtocolVariable, TotalSessionNumberVariable, TournamentOptionsVariable

public abstract class TournamentVariable
extends java.lang.Object
implements java.io.Serializable

TournamentVariable is an abstract class, it is either a ProfileVariable, AgentVariable or AgentParameterVariable, and it has a set of values that it can take. During the tournament, all of the values will be used one after another, in the order given in the ArrayList.

Author:
wouter
See Also:
Serialized Form

Constructor Summary
TournamentVariable()
           
 
Method Summary
abstract  void addValue(TournamentValue value)
          add given value to the array of values
 java.util.ArrayList<TournamentValue> getValues()
           
 void setValues(java.util.ArrayList<TournamentValue> newvals)
           
abstract  java.lang.String varToString()
          varToString converts the variable name into a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TournamentVariable

public TournamentVariable()
Method Detail

addValue

public abstract void addValue(TournamentValue value)
                       throws java.lang.Exception
add given value to the array of values

Throws:
java.lang.Exception

getValues

public java.util.ArrayList<TournamentValue> getValues()

setValues

public void setValues(java.util.ArrayList<TournamentValue> newvals)

varToString

public abstract java.lang.String varToString()
varToString converts the variable name into a string. It shound NOT convert the values, only the variable name and its parameters (eg AgentParam[tau])